package com.zmsoft.persistent.sfg.Sfg661021PlayerLand;

import java.util.ArrayList;
import java.util.HashMap;

import org.cnsoft.framework.apidoc.MyApiDocSupport;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * 玩家农场土地信息接口
 */
@CrossOrigin
@RestController
@RequestMapping(value = "/doc/1.0/base/sfg661021playerland", method = { RequestMethod.GET })
public class Sfg661021PlayerLandApiDoc extends MyApiDocSupport {

	// 获得API地址
	public String loadApiDocName() throws Exception {
		return "玩家农场土地信息;/doc/1.0/base/sfg661021playerland/all";
	}

	// API文档描述
	@RequestMapping(value = "/all", method = RequestMethod.GET)
	public HashMap<String, Object> loadApiDocValue() throws Exception {
		HashMap<String, Object> all = new HashMap<String, Object>();
		// 输出基本信息
		all.put("name", "玩家农场土地信息");
		all.put("baseurl", "/api/1.0/base/sfg661021playerland");
		// 输出API列表
		{
			ArrayList<Object> list = new ArrayList<Object>();
			list.add("/list");
			list.add("/info");
			list.add("/append");
			list.add("/modify");
			list.add("/discard");
			all.put("apilist", list);
		}
		// 输出字段信息
		{
			ArrayList<Object> list = new ArrayList<Object>();
			HashMap<String, Object> item;
			{
				item = new HashMap<String, Object>();
				item.put("enname", "playerId");
				item.put("cnname", "用户ID");
				item.put("datatype", "String");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "playerName");
				item.put("cnname", "用户昵称");
				item.put("datatype", "String");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "landSort");
				item.put("cnname", "土地序号");
				item.put("datatype", "Long");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "landState");
				item.put("cnname", "土地状态(1未开垦2未种植3成长中5成熟待收割9收割后未翻地)");
				item.put("datatype", "String");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "landLevel");
				item.put("cnname", "土地等级");
				item.put("datatype", "Long");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "landPicUrl");
				item.put("cnname", "土地图片");
				item.put("datatype", "String");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "cropsId");
				item.put("cnname", "作物ID");
				item.put("datatype", "String");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "cropsName");
				item.put("cnname", "作物名称");
				item.put("datatype", "String");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "cropsLevel");
				item.put("cnname", "作物等级");
				item.put("datatype", "Long");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "cropsNeedTime");
				item.put("cnname", "成熟需要时间秒");
				item.put("datatype", "Long");
				item.put("memo", "成熟需要时间秒");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "cropsNeedTime1");
				item.put("cnname", "阶段需要时间秒1");
				item.put("datatype", "Long");
				item.put("memo", "成熟需要时间秒");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "cropsNeedTime2");
				item.put("cnname", "阶段需要时间秒2");
				item.put("datatype", "Long");
				item.put("memo", "成熟需要时间秒");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "cropsNeedTime3");
				item.put("cnname", "阶段需要时间秒3");
				item.put("datatype", "Long");
				item.put("memo", "成熟需要时间秒");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "cropsNeedTime4");
				item.put("cnname", "阶段需要时间秒4");
				item.put("datatype", "Long");
				item.put("memo", "成熟需要时间秒");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "cropsNeedTime5");
				item.put("cnname", "阶段需要时间秒5");
				item.put("datatype", "Long");
				item.put("memo", "成熟需要时间秒");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "plantTime");
				item.put("cnname", "种植时间-秒");
				item.put("datatype", "Long");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "cropsState");
				item.put("cnname", "作物状态");
				item.put("datatype", "Long");
				item.put("memo", "1土地种子/2幼苗发芽/3茁壮成长/4长大开花/5成熟结果");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "stageId");
				item.put("cnname", "当前阶段ID");
				item.put("datatype", "String");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "stageName");
				item.put("cnname", "当前阶段名称");
				item.put("datatype", "String");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "actionId");
				item.put("cnname", "阶段互动ID");
				item.put("datatype", "String");
				item.put("memo", "每次只能触发一个");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "actionName");
				item.put("cnname", "阶段互动名称");
				item.put("datatype", "String");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "actionCommandPage");
				item.put("cnname", "功能操作指令");
				item.put("datatype", "String");
				item.put("memo", "业务唯一键");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "actionCommandApi");
				item.put("cnname", "服务操作指令");
				item.put("datatype", "String");
				item.put("memo", "接口唯一键");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "needTime");
				item.put("cnname", "当前阶段需要时间(秒)");
				item.put("datatype", "Long");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "seasonsNum");
				item.put("cnname", "季数");
				item.put("datatype", "Long");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "fruitMax");
				item.put("cnname", "最大果实数目");
				item.put("datatype", "Long");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "fruitStealMax");
				item.put("cnname", "最大可偷取果实数目");
				item.put("datatype", "Long");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "fruitStealLeft");
				item.put("cnname", "剩余可偷取果实数目");
				item.put("datatype", "Long");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "fruitPrice");
				item.put("cnname", "果实单价-分");
				item.put("datatype", "Long");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "fruitVolume");
				item.put("cnname", "果实占用仓库容积大小");
				item.put("datatype", "Long");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "cropsExp");
				item.put("cnname", "可以获得经验数目");
				item.put("datatype", "Long");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "leftWatering");
				item.put("cnname", "剩余浇水数目");
				item.put("datatype", "Long");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "leftWeeding");
				item.put("cnname", "剩余除草数目");
				item.put("datatype", "Long");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "leftInsect");
				item.put("cnname", "剩余杀虫数目");
				item.put("datatype", "Long");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "leftFertilize");
				item.put("cnname", "剩余施肥数目");
				item.put("datatype", "Long");
				item.put("memo", "");

				list.add(item);
			}
			all.put("itemlist", list);
		}

		return all;
	}

}
